package com.zjj.spring.read.xml.aop;
/**
 * 常规的接口实现列类 - 被代理对象
 * 仅能被代理(增强)本类中的方法
 * @author zhuangjiajie778
 */
public class GreetingImpl implements Greeting{

	@Override
	public String hello(String name) {
		System.out.println(" --- GreetingImpl hello : " + name + " ---");
		return "return GreetingImpl#hello";
	}

	@Override
	public String except(String info) {
		System.out.println(" --- GreetingImpl except : " + info + " ---");
		throw new RuntimeException("GreetingImpl#error!!!");
	}
	
	@Override
	public String goodMorning(String name) {
		System.out.println(" --- GreetingImpl goodMorning : " + name + " ---");
		return "return GreetingImpl#goodMorning";
	}
	@Override
	public String goodNight(String name) {
		System.out.println(" --- GreetingImpl goodNight : " + name + " ---");
		return "return GreetingImpl#goodNight";
	}

}
